import {SYSTEM_PREFIX} from "@/store/constant";

export const tableOption = {
  height: 'auto',
  calcHeight: 210,
  searchShow: true,
  searchMenuSpan: 6,
  tip: false,
  border: true,
  index: true,
  addBtn: false,
  viewBtn: true,
  selection: true,
  column: [
    {
      label: "通知标题",
      prop: "title",
      span: 24,
      search: true,
      rules: [{
        required: true,
        message: "请输入通知标题",
        trigger: "blur"
      }]
    },
    {
      label: "通知类型",
      type: "select",
      dicUrl: SYSTEM_PREFIX + "/dict/dictionary?code=notice",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      slot: true,
      prop: "category",
      search: true,
      rules: [{
        required: true,
        message: "请输入通知类型",
        trigger: "blur"
      }]
    },
    {
      label: "通知日期",
      prop: "releaseTime",
      type: "date",
      format: "yyyy-MM-dd hh:mm:ss",
      valueFormat: "yyyy-MM-dd hh:mm:ss",
      rules: [{
        required: true,
        message: "请输入通知日期",
        trigger: "blur"
      }]
    },
    {
      label: "通知内容",
      prop: "content",
      span: 24,
      minRows: 6,
      type: "textarea"
    }
  ]
}
